package com.zzzzzz.content.article;

import org.hibernate.validator.constraints.NotBlank;

public class ArticleForm {
	@NotBlank
	private String title;
	@NotBlank
	private String textS;
	@NotBlank
	private String textN;
	@NotBlank
	private String tags;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTextS() {
		return textS;
	}
	public void setTextS(String textS) {
		this.textS = textS;
	}
	public String getTextN() {
		return textN;
	}
	public void setTextN(String textN) {
		this.textN = textN;
	}
	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
	}
	
	public void updateArticle(Article article){
		article.setTitle(this.getTitle());
		article.setTextS(this.getTextS());
		article.setTextN(this.getTextN());
		article.setTags(this.getTags());
	}

	public void update(Article article){
		this.setTitle(article.getTitle());
		this.setTextS(article.getTextS());
		this.setTextN(article.getTextN());
		this.setTags(article.getTags());
	}
}
